package com.caiheng.api.entity.survey;

import com.baomidou.mybatisplus.annotation.*;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.util.Date;

/**
 * 问卷调查的用户填报数据对象 survey_user_record
 *
 * @author ruoyi
 * @date 2021-09-05
 */
@Data
@NoArgsConstructor
@Accessors(chain = true)
@TableName("survey_user_record")
public class SurveyUserRecord implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * $column.columnComment
     */
    @TableId(value = "id",type = IdType.AUTO)
    private Integer id;

    /**
     * 问卷id
     */
    private Integer surveyId;

    /**
     * 物业id
     */
    private Integer propertyId;

    /**
     * 小区id
     */
    private Integer estateId;

    private Integer eventTaskId;

    /**
     *  任务 info id
     */
    private Integer eventTaskInfoId;

    private Integer pointQrId;

    private Integer pointQrInfoId;

    /**
     * 业主微信id
     */
    private Integer userId;

    private String nickName;

    private String phoneNum;

    @TableField(exist = false)
    private String eventTypeName;

    @TableField(exist = false)
    private String sysUserName;

    @TableField(exist = false)
    private String estateName;


    /**
     *  完成内容  设备名称  点位名称  等
     */
    @TableField(exist = false)
    private String sectionContent;

    /**
     * 填报时间
     */
    @TableField(fill = FieldFill.INSERT)
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date createTime;

}
